// Overrides
@import url(https://fonts.googleapis.com/css?family=Nunito+Sans);

body {
  font-weight: 200;
  letter-spacing: 1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: uppercase;
  letter-spacing: 3px;
}

a {
  color: $grey;
}

.box {
  box-shadow: 0 0 0 1px $grey-lighter;
}

.button {
  transition: all 200ms ease;
  text-transform: uppercase;
  font-weight: 700;

  &.is-active,
  &.is-focused,
  &:active,
  &:focus {
    box-shadow: 0 0 0 2px rgba($button-focus-border-color, 0.25);
  }
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      &.is-active,
      &.is-focused,
      &:active,
      &:focus {
        border-color: $color;
        box-shadow: 0 0 0 2px rgba($color, 0.25);
      }
    }
  }
}

.button,
.input,
.pagination-ellipsis,
.pagination-link,
.pagination-next,
.pagination-previous,
.select,
.select select,
.textarea,
.control.has-icons-left .icon,
.control.has-icons-right .icon {
  height: 2.5em;
}

.input,
.textarea {
  transition: all 200ms ease;
  box-shadow: none;
}

.progress,
.tag {
  border-radius: $radius;
}

.card {
  box-shadow: 0 0 0 1px $grey-lighter;

  .card-header {
    box-shadow: 0 1px 0 0 $grey-lighter;
  }
}

.navbar {
  .navbar-link, .navbar-item {
    text-transform: uppercase;
    font-weight: bold;
  }

  .has-dropdown .navbar-item {
    text-transform: none;
  }

  strong {
    color: $white;
  }

  .navbar-burger {
    span {
      background-color: $grey;
    }

    &:hover, &:active {
      background-color: lighten($primary, 10);
    }
  }
}

.nav {
  background-color: $primary;
  border-radius: $radius;
  color: $grey;
  min-height: 5rem;

  @media screen and (max-width: $tablet - 1) {
    .nav-menu {
      background-color: $primary;
      border-radius: $radius;
    }
  }


  .subtitle,
  .title {
    color: $grey;
    text-transform: uppercase;
    font-weight: bold;
  }

  .nav-item a:not(.button),
  a.nav-item:not(.button) {
    color: $grey;
    text-transform: uppercase;
    font-weight: bold;

    &:hover {
      color: $white;
    }
    // Modifiers
    &.is-active {
      color: $white;

      &.is-tab {
        border-bottom-color: $grey;
      }
    }
  }

  .nav-toggle {
    width: 5rem;
    height: 5rem;

    &:hover {
      background-color: rgba($white, 0.1);

      span {
        background-color: $white;
      }
    }

    span {
      background-color: $grey;
    }
  }
}

.hero {
  .nav {
    background-color: $primary;
  }
}

.notification {
  @each $name, $pair in $colors {
    $color: nth($pair, 1);
    $color-invert: nth($pair, 2);

    &.is-#{$name} {
      a:not(.button) {
        color: $color-invert;
        text-decoration: underline;
      }
    }
  }
}
